package com.example.mapper;

import java.util.List;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.domain.GoodsOrders;
import com.example.domain.Guanzhu;

import org.apache.ibatis.annotations.Mapper;

/**
 * 订单Mapper接口
 *
 * @author kzc
 * @date 2023-04-22
 */
@Mapper
public interface GoodsOrdersMapper extends BaseMapper<GoodsOrders>
{
    /**
     * 查询订单
     *
     * @param sgoId 订单主键
     * @return 订单
     */
    public GoodsOrders selectGoodsOrdersBySgoId(Integer sgoId);

    /**
     * 查询订单列表
     *
     * @param goodsOrders 订单
     * @return 订单集合
     */
    public List<GoodsOrders> selectGoodsOrdersList(GoodsOrders goodsOrders);

    /**
     * 新增订单
     *
     * @param goodsOrders 订单
     * @return 结果
     */
    public int insertGoodsOrders(GoodsOrders goodsOrders);

    /**
     * 修改订单
     *
     * @param goodsOrders 订单
     * @return 结果
     */
    public int updateGoodsOrders(GoodsOrders goodsOrders);

    /**
     * 删除订单
     *
     * @param sgoId 订单主键
     * @return 结果
     */
    public int deleteGoodsOrdersBySgoId(Integer sgoId);

    /**
     * 批量删除订单
     *
     * @param sgoIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteGoodsOrdersBySgoIds(Integer[] sgoIds);
    public int   upsta(Integer sgo_id);
}
